package com.cos.services.impl;

import com.cos.services.TestServices;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.security.RolesAllowed;

/**
 * @author: COS
 * @time: 2021/11/23 10:27
 * @description:
 */
@Service
public class TestServicesImpl implements TestServices {

//    @RolesAllowed("ROLE_ADMIN")
    public String t1(){
        System.out.println("这个是t1");
        return "index";
    }
//    @RolesAllowed("ROLE_USER")
    public String t2(){
        System.out.println("这个是t2");
        return "index";
    }



//    @RolesAllowed({"ROLE_ADMIN","ROLE_USER"})
    public String t3(){
        System.out.println("这个是t3");
        return "index";
    }
}
